import request from "@/utils/request"

const getVoucher = async () => {
  const data = await request('/system/vfs_info/findVfsInfo?sobId=1');
  console.log(data);

  return data
}
const delVoucher = async (vfsId: any) => {
  const data = await request.post(`/system/vfs_info/delVfsINfoById/${vfsId}`);
  console.log(111, data);
  return data
}
const addVoucher = async (_data: any) => {
  const data = await request.post('/system/vfs_info/addVfsInfo', { data: _data });
  // console.log(222, data);
  return data
}
const editVoucher=async(_data:any)=>{
  const data=await request.post('/system/vfs_info/updateVfsInfoById',{data:_data})
  console.log(1212,data);
  
  return data
}

export {
  getVoucher,
  delVoucher,
  addVoucher,
  editVoucher
}
